Skip to content

Conversation

@1337joe
Copy link
Contributor

@1337joe 1337joe commented Aug 23, 2025

#10174 changed the annotations for the schema to return a list using type PaginatedStockItemList

Since you can't really page through create results without creating more results on each call, the paging needs to be disabled so a raw array of StockItem is returned.

@netlify
Copy link

netlify bot commented Aug 23, 2025

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 382b569
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/68a941ddf0303a0008d53a5c

@codecov
Copy link

codecov bot commented Aug 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.37%. Comparing base (0d7e3fa) to head (382b569).
⚠️ Report is 301 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10213      +/-   ##
==========================================
- Coverage   87.37%   87.37%   -0.01%     
==========================================
  Files        1265     1265              
  Lines       56429    56430       +1     
  Branches     2066     2066              
==========================================
  Hits        49303    49303              
- Misses       6618     6619       +1     
  Partials      508      508              
Flag Coverage Δ
backend 89.07% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 91.62% <100.00%> (+<0.01%) ⬆️
Backend General 93.64% <ø> (ø)
Frontend 70.07% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
Copy link
Member

@1337joe thanks again, this is a good addition :)

@SchrodingersGat SchrodingersGat merged commit 303e8b4 into inventree:master Aug 24, 2025
32 checks passed
@SchrodingersGat SchrodingersGat added the api Relates to the API label Aug 24, 2025
@SchrodingersGat SchrodingersGat added this to the 1.0.0 milestone Aug 24, 2025
@1337joe 1337joe deleted the dont-paginate-on-create branch August 24, 2025 04:02
daniil4udo pushed a commit to daniil4udo/InvenTree that referenced this pull request Aug 26, 2025
* Disable paging on purchaseOrderReceive api call

* Bump api version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants